import { Define, EntityObjectFactory } from 'tiny-entity2';
const EntityObjectType = EntityObjectFactory.GetEntityObjectType(process.env.dataBaseType || 'mysql');

@Define.Table({ TableName: "token" })
export class Token extends EntityObjectType<Token>{
    @Define.PrimaryKey()
    id: string;

    @Define.Column({ DataType: Define.DataType.VARCHAR })
    value: string;

    @Define.Column({ DataType: Define.DataType.BIGINT })
    createTime: number;

    @Define.Column({ DataType: Define.DataType.VARCHAR })
    accountId: string;

    @Define.Column({ DataType: Define.DataType.VARCHAR })
    ip: string;
}